module frontend.Loader;
static import builder.Skeleton;
static import builder.Animation;
static import builder.Model;
import frontend.Model;
import frontend.Types;
import loader.scene.format.Hme;

Model loadModel(char[] f, char[] mn, char[] animationname, float animationspeed){
	HmeLoader hml;
	Model model= builder.Model.getModel(f,mn,hml);
	model.skeleton=builder.Skeleton.loadSkeleton(hml,mn);
	builder.Animation.loadAnimation(hml,mn,animationname,animationspeed);
	model.skeleton.addAnimation(animationCache.get(animationname));
	return model;}

void addAnimation(inout Model model, char[] f, char[] mn, char[] animationname, float animationspeed){
	builder.Animation.loadAnimation(f,mn,animationname,animationspeed);
	model.skeleton.addAnimation(animationCache.get(animationname));
}
